package org.ly817.my.spring.core;

import org.ly817.victorinox.myspring.context.ApplicationContext;
import org.ly817.victorinox.myspring.context.ClassPathApplicationContext;

/**
 * Created by LuoYu on 2018/4/14.
 */
public class ApplicationContextMain {
    public static void main(String[] args) throws Exception {
        ApplicationContext applicationContext = new ClassPathApplicationContext("myspring.xml");
        TestService testService = (TestService) applicationContext.getBean("testService");
        testService.hello();
    }
}
